﻿using System.ServiceModel;
using System.Text;

namespace Corina.Win.DataService
{
    public class WebBindingConfig
    {
        public static BasicHttpBinding HttpBinding
        {
            get
            {
                BasicHttpBinding binding = new BasicHttpBinding();
                binding.MaxReceivedMessageSize = int.MaxValue;
                binding.MaxBufferSize = int.MaxValue;
                //binding.MessageEncoding = WSMessageEncoding.Text;
                binding.TextEncoding = Encoding.UTF8;
                binding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
                return binding;
            }
        }
    }
}
